<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<title>demo4</title>
	<script type="text/javascript">
		//自定义一个函数(删除数组的重复元素)
		arr=[12,12,88,39,93,33,92,33,22,33];


		function de(arr){
			len=arr.length;
			tmp=[];
			//console.log(len);
			for(var i in arr){
				if(tmp.indexOf(arr[i])==-1){
					tmp.push(arr[i]);
				}
					
			}   
				console.log(tmp);
				return tmp;



		}


		res=de(arr);
		console.log(res);

	</script>
</head>
<body>
	
</body>
</html>